import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useNavbarStore = defineStore(
  'navbar',
  () => {
    const flag = ref(true)
    const setFlag = (newCity) => {
      flag.value = newCity
    }
    return { flag, setFlag }
  },
  {
    persist: {
      paths: ['flag']
    }
  }
)
